const app = getApp();
Page({
  data: {
    PageCur: 'home'
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    if (options.pageCur) {
      this.setData({
        PageCur: options.pageCur
      })
    }
  },
  NavChange(e) {
    this.setData({
      PageCur: e.currentTarget.dataset.cur
    })
  },
  //分享
  onShareAppMessage() {
    return {
      title: app.globalData.customerName,
      // imageUrl: '/images/share.jpg',
      path: '/pages/index/index'
    }
  },
})
